using System;
using System.Collections.Generic;
using System.Text;

namespace DDW
{
	public class EnumNode : BaseNode
	{
		private Modifier modifiers;
		public Modifier Modifiers
		{
			get { return modifiers; }
			set { modifiers = value; }
		}

		private IdentifierExpression name;
		public IdentifierExpression Name
		{
			get { return name; }
			set { name = value; }
		}

		private TypeNode baseClass;
		public TypeNode BaseClass
		{
			get { return baseClass; }
			set { baseClass = value; }
		}

		private ExpressionNode val;
		public ExpressionNode Value
		{
			get { return val; }
			set { val = value; }
		}

		public override void ToSource(StringBuilder sb)
		{
			//todo: enumNode to source

			if (attributes != null)
			{
				attributes.ToSource(sb);
				this.NewLine(sb);
			}
			// todo: enum members can have attributes
		}
	}
}
